<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8" import="java.util.*"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@ taglib uri="http://www.ranbang.com" prefix="rbtag"%>
<%
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ request.getContextPath() + "/";
//response.sendRedirect("common/login");
%>
<c:set var="path" value="${pageContext.request.contextPath }" />
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>查询</title>
		<script src="${path}/resource/laydate/laydate.js"></script>
		<script type="text/javascript" src="${path }/resource/js/jquery-2.0.3.js"></script>
		<script type="text/javascript" src="${path }/resource/js/mytools.js"></script>
		<script type="text/javascript" src="${path }/resource/layer/layer.js"></script>
		
		<style type="text/css">
			input[type="text"]{
				margin-left:20px;
				width: 150px;
			}
			.span1{
				display: inline-block;
				width:100px;
				height:25px;
				padding: 3px;
				margin-left:20px;
				text-align: center;
				background:#85876B;
			}
			.button{
				width:80px;
			}
		</style>
	</head>
	<body>
		<h4>查询档案</h4>
		<form  id="searchfrom">
			<input type="hidden" value="" />
			<table>
			<tr align="left">
					<td colspan="2"><span class="span1">档案编号</span><input type="text" style="width:300px;" value="" name="file_no"/></td>
			</tr>
			<tr align="left">
			<td ><span class="span1">土地用途</span>
			<rbtag:select value="dic_value" tabName="dictionary" filed="dic_value" where="and dic_type='土地用途'" inputname="soil_use"></rbtag:select>
			</td>
			<td ><span class="span1">登记类型</span>
			<rbtag:select value="dic_value" tabName="dictionary" filed="dic_value" inputname="reg_type"></rbtag:select>
			</td>
			</tr>
			<tr align="left">
			<td ><span class="span1">图幅号</span><input type="text"  value="" name="map_no"/></td>
			<td ><span class="span1">宗地号</span><input type="text"  value="" name="land_no"/></td>
			</tr>
			<tr align="left">
			<td ><span class="span1">土地坐落</span><input type="text" value="" name="soil_local"/></td>
			<td ><span class="span1">所属区域</span>
			<rbtag:select value="dic_value" tabName="dictionary" filed="dic_value" where="and dic_type='所属区域'" inputname="belong_district"></rbtag:select>
			</td>
			</tr>
			<tr align="left">
			<td ><span class="span1">土地证号</span><input type="text" value="" name="soil_no"/></td>
			<td ><span class="span1">土地使用者</span><input type="text" value="" name="soil_user"/></td>
			</tr>
			<tr align="left">
			<td ><span class="span1">原土地号</span><input type="text"  value="" name="soil_ago_no"/></td>
			<td ><span class="span1">原土地使用者</span><input type="text"  value="" name="soil_ago_user"/></td>
			</tr>
			<tr align="center">
			<td colspan="3">
				<input type="reset" value="重置" class="button"/>
				<input type="button" value="查询" class="button" onclick="mjs.search()"/>
				<input type="button" value="新增" class="button" onclick="mjs.editFrom()"/>
			</td>
			</tr>
				</table>
		</form>
		<br><br><br><br>
		
		<table id="table1">
				<thead id="thead">
				<th data-name = "file_no">档案编号</th>  
				<th data-name = "soil_use">土地用途</th>
				<th data-name = "soil_level" >土地等级</th>
				<th data-name = "own_property">权属性质</th>
				<th data-name = "reg_type">登记类型</th>
				<th data-name = "id" data-format="operation">操作</th>  
				</thead>
			</table>
		<script>
		var mjs =	mytooljs.initTable({  
			idSelecter:"#table1",
			sendurl:"${path}/user/fileSoil/showList" , //求数据的地址
			pagesize:5,//分页大小
			delUrl:"${path}/user/fileSoil/del",//删除数据地址
			editUrl:"${path}/user/fileSoil/editForm" //打开编辑或新增页面地址
			});
		//操作
		function operation(id){
			var	html="";
			html+="<input type='button' value='编辑' onclick='mjs.editFrom("+id+")' />"
			html+="<input type='button' value='删除' onclick='mjs.delRec("+id+")' />"
			return html;
		}
		
		</script>
	</body>
</html>
